package com.pacy.pacybaseproject.viewmodels;

import android.app.Application;
import android.view.View;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.listener.OnItemClickListener;
import com.pacy.pacybaseproject.R;
import com.pacy.pacybaseproject.adapters.HomeActivityAdapter;
import com.pacy.pacybaseproject.adapters.HomeMenuAdapter;
import com.pacy.pacybaseproject.adapters.HomeMsgAdapter;
import com.pacy.pacybaseproject.adapters.SerBaseMenuAdapter;
import com.pacy.pacybaseproject.adapters.SerMenuAdapter;
import com.pacy.pacybaseproject.beans.HomeMsgBean;
import com.pacy.pacybaseproject.beans.MenuBaseBean;
import com.pacy.pacybaseproject.beans.MenuBean;
import com.pacy.pacybaseproject.utils.Constants;

import java.util.ArrayList;
import java.util.List;

import io.reactivex.annotations.NonNull;
import me.goldze.mvvmhabit.base.BaseViewModel;

/**
 * @author PACY
 * @date 2023/12/20
 * description:
 */
public class RewardViewModel extends BaseViewModel {
    public SerBaseMenuAdapter menuAdapter;
    public RewardViewModel(@NonNull Application application) {
        super(application);
    }
    @Override
    protected void init() {
        super.init();
        initAdapter();
    }

    private void initAdapter(){
        menuAdapter=new SerBaseMenuAdapter();


        List<MenuBaseBean> menus=new ArrayList<>();
        List<MenuBean> datas1=new ArrayList<>();
        datas1.add(new MenuBean("步行", R.drawable.delete_menu_buxing));
        datas1.add(new MenuBean("骑行", R.drawable.delete_menu_qixing));
        datas1.add(new MenuBean("打车", R.drawable.delete_menu_chuzuche));
        datas1.add(new MenuBean("公交", R.drawable.delete_menu_gongjiao));
        datas1.add(new MenuBean("定制公交", R.drawable.delete_menu_dzgj));
        menus.add(new MenuBaseBean("出行工具",datas1));


        List<MenuBean> datas2=new ArrayList<>();
        datas2.add(new MenuBean("ETC网点", R.drawable.delete_menu_etcwangdian));
        datas2.add(new MenuBean("救援维修", R.drawable.delete_menu_wxjy));
        datas2.add(new MenuBean("驾校网点", R.drawable.delete_menu_jiaxiao));
        menus.add(new MenuBaseBean("车主服务",datas2));


        List<MenuBean> datas3=new ArrayList<>();
        datas3.add(new MenuBean("高速路况", R.drawable.delete_menu_gslk));
        datas3.add(new MenuBean("收费站", R.drawable.delete_menu_sfz));
        datas3.add(new MenuBean("服务区", R.drawable.delete_menu_fwq));
        datas3.add(new MenuBean("预约通行", R.drawable.delete_menu_yytx));
        menus.add(new MenuBaseBean("高速服务",datas3));


        List<MenuBean> datas4=new ArrayList<>();
        datas4.add(new MenuBean("资讯", R.drawable.delete_menu_cxzx));
        datas4.add(new MenuBean("畅通卡服务", R.drawable.delete_menu_ctkfw));
        datas4.add(new MenuBean("积分奖励", R.drawable.delete_menu_jfsc));
        datas4.add(new MenuBean("12328咨询", R.drawable.delete_menu_12328));
        datas4.add(new MenuBean("实物招领", R.drawable.delete_menu_swzl));
        menus.add(new MenuBaseBean("特色服务",datas4));

//        datas.add(new MenuBean("轨道", R.drawable.delete_menu_guidao));
//        datas.add(new MenuBean("自驾", R.drawable.delete_menu_zijia));
//        datas.add(new MenuBean("积分", R.drawable.delete_menu_jfsc));
//        datas.add(new MenuBean("路况", R.drawable.delete_menu_sslk));
//        datas.add(new MenuBean("资讯", R.drawable.delete_menu_cxzx));
//
//        datas.add(new MenuBean("我要学车", R.drawable.delete_menu_wyxc));
//        datas.add(new MenuBean("资格考试", R.drawable.delete_menu_zgks));
//        datas.add(new MenuBean("驾驶员查询", R.drawable.delete_menu_jsycx));
//        datas.add(new MenuBean("建言征集", R.drawable.delete_menu_jyzj));
//        datas.add(new MenuBean("客服热线", R.drawable.delete_menu_kfrx));
//        datas.add(new MenuBean("加油", R.drawable.delete_menu_jiayou));
//        datas.add(new MenuBean("机票", R.drawable.delete_menu_jipiao));
//        datas.add(new MenuBean("充电", R.drawable.delete_menu_chongdian));
//        datas.add(new MenuBean("景区", R.drawable.delete_menu_jingqu));
//        datas.add(new MenuBean("交管服务", R.drawable.delete_menu_jgfw));
//        datas.add(new MenuBean("停车缴费", R.drawable.delete_menu_tcjf));
//        datas.add(new MenuBean("高速ETC", R.drawable.delete_menu_gsetc));
//        datas.add(new MenuBean("挪车码", R.drawable.delete_menu_nuochema));
//        datas.add(new MenuBean("特价洗车", R.drawable.delete_menu_tejiaxiche));
//        datas.add(new MenuBean("车险服务", R.drawable.delete_menu_baoxianfuwu));
        menuAdapter.setNewInstance(menus);
        menuAdapter.setOnItemClickListener(new OnItemClickListener() {
            @Override
            public void onItemClick(BaseQuickAdapter<?, ?> adapter, View view, int position) {

            }
        });

    }
}
